package com.itheima.mapper;

import com.itheima.domain.User;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;


import java.util.List;


public interface UserMapper {

    @Select("select * from user")
    @Results(id = "userMap",value = {
            @Result(column = "username",property = "username"),
            @Result(column = "password",property = "password")
    })
    List<User> findAll();
}
